KindEditor.ready(function (K) {
    var editor1 = K.create('textarea[name="content1"]', {
        cssPath: '../plugins/code/prettify.css',
        uploadJson: '../jsp/upload_json.jsp',
        fileManagerJson: '../jsp/file_manager_json.jsp',
        allowFileManager: true,
        afterCreate: function () {
            var self = this;
            K.ctrl(document, 13, function () {
                self.sync();
                document.forms['example'].submit();
            });
            K.ctrl(self.edit.doc, 13, function () {
                self.sync();
                document.forms['example'].submit();
            });
        }
    });
    prettyPrint();
});